import request from '@/utils/request'

// code
export async function getWeChatCode(params) {
  const res = await request({
    url: '/gzh/code',
    method: 'get',
    params: params || {}
  })
  return res
}
// 获取签名
export async function getWeChatSign(params) {
  const res = await request({
    url: '/gzh/jssdk/sign',
    method: 'get',
    params: params || {}
  })
  return res
}

// 绑定微信
export async function bindWeChatCode(params) {
  const res = await request({
    url: '/gzh/bind',
    method: 'post',
    data: params || {}
  })
  return res
}
